import request from '@/utils/request'

// 获取当前学期所有用户总分
export function getallUserScoreBySemId(semId) {
  return request({
    url: 'total/getallUserScoreBySemId',
    method: 'GET',
    params: {
      semId: semId
    }
  })
}

// 发布成绩
export function pushScore(totalSemId, totalUserId, totalScore) {
  return request({
    url: 'total/pushScore',
    method: 'POST',
    params: {
      totalSemId: totalSemId,
      totalUserId: totalUserId,
      totalScore: totalScore
    }
  })
}

// 获取当前学期各党小组各分数段人数
export function totalCount(semId) {
  return request({
    url: 'total/totalcount',
    method: 'GET',
    params: {
      semId: semId
    }
  })
}

export function getAllTotal() {
  return request({
    url: 'total/getAll',
    method: 'GET'
  })
}
